package cn.mymall.service;

import cn.mymall.entity.TradeOrder;
import cn.mymall.entity.mall.CartItem;
import cn.mymall.vo.order.CartItemVo;
import cn.mymall.vo.order.CreateMallOrderVo;
import cn.mymall.vo.order.OrderSearchVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liqilun
 * @since 2024-03-23
 */
public interface ITradeOrderService extends IService<TradeOrder> {

    TradeOrder createOrder(CreateMallOrderVo orderVo) throws OrderException;

    TradeOrder createOrderByCart(CreateMallOrderVo createMallOrderVo, List<CartItem> cartItemList) throws OrderException;

    Page<TradeOrder> getPageList(OrderSearchVo reqVo);
}
